<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html >
<html>
<head>
<meta  charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<form action="updateBook.action" method="post">
	<table border="1">
		<tr>
			<td>图书编号</td>
			<td>
				<input type="text" name="id" value="${book.id }" readonly="readonly" />
			</td>
		</tr>
		<tr>
			<td>图书名称</td>
			<td>
				<input type="text" name="b_name" value="${book.b_name }"  />
			</td>
		</tr>
		<tr>
			<td>图书描述</td>
			<td>
				<input type="text" name="description" value="${book.description }"  />
			</td>
		</tr>
		<tr>
			<td>图书价格</td>
			<td>
				<input type="text" name="price" value="${book.price }"  />
			</td>
		</tr>
		<tr>
			<td>图书类别</td>
			<td>
				<select name="typeId">
					<option value="${book.typeId}" selected="selected">&nbsp&nbsp${book.type.t_name }&nbsp&nbsp
					<option value="---请选择---">---请选择---</option>
					<option value="1" >&nbsp&nbsp小说&nbsp&nbsp
					<option value="2" >&nbsp&nbsp文艺&nbsp&nbsp
					<option value="3" >&nbsp&nbsp心理&nbsp&nbsp
					<option value="4" >&nbsp&nbsp童书&nbsp&nbsp
					</select>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="submit" value="确认修改"  />
			</td>
		</tr>
	</table>
	</form>
</body>
</html>
